package com.gitee.aurora.controller;

import com.gitee.aurora.service.SjzxCheckService;
import com.gitee.aurora.utils.ResultVO;
import com.gitee.aurora.vo.DataCheckVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * author: jiangfuxiao
 * Date:2022/9/2 9:28
 */
@Controller
@ResponseBody
@RequestMapping("checkSjzx")
public class SjzxCheckController {


    @Resource(name = "sjzxCheckServiceImpl")
    private SjzxCheckService sjzxCheckService;


    @GetMapping("/queryTableData")
    public ResultVO queryTableData(DataCheckVo vo ) {
        return  sjzxCheckService.queryTableData(vo);
    }

    @PostMapping("/insertData")
    public ResultVO insertData(@RequestBody List list,@RequestBody DataCheckVo vo) {
        return  sjzxCheckService.insertData(list,vo);
    }

}
